package leesoft.configuration.core;

import java.util.HashMap;
import java.util.Map;

//for global use
public class RuntimeContext {
	@SuppressWarnings("unchecked")
	Map innerMap=new HashMap();
	public static RuntimeContext instance=new RuntimeContext();
	public static RuntimeContext getInstance(){
		return instance;
	}
	@SuppressWarnings("unchecked")
	public void put(Object key,Object value){
		innerMap.put(key, value);
	}
	public String getString(Object key){
		return ""+innerMap.get(key);
	}
	public int getInt(Object key){
		return Integer.parseInt(getString(key));
	}
	
}
